package cn.turing.firecontrol.device.service.impl;

import cn.turing.firecontrol.device.entity.DeviceSensorDo;
import cn.turing.firecontrol.device.entity.Devicesenordo;
import cn.turing.firecontrol.device.mapper.DevicesenordoMapper;
import cn.turing.firecontrol.device.service.DevicesenordoService;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
* @author Wyt
* @description 针对表【devicesenordo】的数据库操作Service实现
* @createDate 2023-04-11 10:51:18
*/
@Service
public class DevicesenordoServiceImpl implements DevicesenordoService{
    @Autowired
    DevicesenordoMapper devicesenordoMapper;
    @Override
    public void insertByDo(List<Devicesenordo> deviceSensorDos) {
        devicesenordoMapper.insertByDo(deviceSensorDos);
    }

    @Override
    public List<Devicesenordo> selectByAll() {
        return devicesenordoMapper.selectByAll();
    }

    @Override
    public List<Devicesenordo> selectByLimit( int id,int offset, int limit) {
        return devicesenordoMapper.selectByLimit(id,offset,limit);
    }
}




